﻿<Page
    x:Class="Runa.Metro.GameGeneralPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Runa.Metro"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="FontSize" Value="15" />
        </Style>
   </Page.Resources>

    <Grid Name="Layout" Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="200" />
        </Grid.ColumnDefinitions>
        <Image Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Source="{Binding BitmapImage}" Width="100" Height="100" />
        <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Name}" FontSize="50" />
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Author}" FontSize="40" />
        <Grid Name="Grid_Settings" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200" />
                <ColumnDefinition Width="200" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="Fps" />
            <ComboBox Name="CB_Fps" Grid.Row="0" Grid.Column="1" SelectedValue="{Binding Fps}" >
                <x:String>333333</x:String>
                <x:String>666666</x:String>
            </ComboBox>

            <TextBlock Grid.Row="1" Grid.Column="0" Text="GPU Acceleration Enabled" />
            <CheckBox Name="CHBox_GPUAccelerationEnabled" Grid.Row="1" Grid.Column="1" IsChecked="{Binding GPUAccelerationEnabled}" />
            
            <TextBlock Grid.Row="2" Grid.Column="0" Text="Mouse Sensitive" />
            <TextBox Name="TB_MouseSensitive" Grid.Row="2" Grid.Column="1" Text="{Binding MouseSensitive}" />
            
            <Grid Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Grid.RowDefinitions>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Button Grid.Row="0" Grid.Column="0" Name="Btn_Save" Click="Btn_Save_Click" Content="Save" />
                <Button Grid.Row="0" Grid.Column="1" Name="Btn_Cancel" Click="Btn_Cancel_Click" Content="Cancel" />
            </Grid>
        </Grid>
    </Grid>
</Page>